<?php
class ProductAction extends CommonAction {
	private $Product;
	function _initialize() {
		$this->Product = M('Product');
	}
	//返回产品价格及其它
	public function getPrice(){
		$pid = $_REQUEST['pid'];
		$product = $this->Product->getById($pid);
		$this->ajaxReturn($product,'获取成功',1);
	}
}
?>